package com.hsd.commons.model;

/**
 * HsdAppCodedataId entity. @author MyEclipse Persistence Tools
 */

public class HsdAppCodedataId extends com.hsd.core.model.BaseBean implements
		java.io.Serializable {

	// Fields

	private String codetype;
	private String codevalue;

	// Constructors

	/** default constructor */
	public HsdAppCodedataId() {
	}

	/** full constructor */
	public HsdAppCodedataId(String codetype, String codevalue) {
		this.codetype = codetype;
		this.codevalue = codevalue;
	}

	// Property accessors

	public String getCodetype() {
		return this.codetype;
	}

	public void setCodetype(String codetype) {
		this.codetype = codetype;
	}

	public String getCodevalue() {
		return this.codevalue;
	}

	public void setCodevalue(String codevalue) {
		this.codevalue = codevalue;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof HsdAppCodedataId))
			return false;
		HsdAppCodedataId castOther = (HsdAppCodedataId) other;

		return ((this.getCodetype() == castOther.getCodetype()) || (this
				.getCodetype() != null && castOther.getCodetype() != null && this
				.getCodetype().equals(castOther.getCodetype())))
				&& ((this.getCodevalue() == castOther.getCodevalue()) || (this
						.getCodevalue() != null
						&& castOther.getCodevalue() != null && this
						.getCodevalue().equals(castOther.getCodevalue())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getCodetype() == null ? 0 : this.getCodetype().hashCode());
		result = 37 * result
				+ (getCodevalue() == null ? 0 : this.getCodevalue().hashCode());
		return result;
	}

}